]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "shell: Fix pixbuf reference leak saving screenshots"
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Mon, 29 Aug 2022 14:53:33 +0000 (21:53 +0700)
committermsizanoen1 <msizanoen@qtmlabs.xyz>
Mon, 29 Aug 2022 14:54:30 +0000 (21:54 +0700)
This reverts commit f5754adb681d55e985147b56de9c2b30c8cbc9f1 in
accordance with https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2449#note_1539435.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2452>

src/shell-screenshot.c

index c173dd5d8e83e64ca94c9471a5d4c2510f6d449b..fcf2da2365e7437d5b51cb6c9d7f8cd51e22d331 100644 (file)
@@ -1061,7 +1061,6 @@ composite_to_stream_on_png_saved (GObject      *pixbuf,
   else
     g_task_return_pointer (task, g_object_ref (pixbuf), g_object_unref);
 
-  g_object_unref (pixbuf);
   g_object_unref (task);
 }